/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package cz.cuni.mff.d3s.arcas.intermediate.impl;

import cz.cuni.mff.d3s.arcas.intermediate.DistributionArchitectureUnit;
import cz.cuni.mff.d3s.arcas.intermediate.IntermediatePackage;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.internal.cdo.CDOObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Distribution Architecture Unit</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.DistributionArchitectureUnitImpl#getName <em>Name</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.DistributionArchitectureUnitImpl#isMultipleCardinality <em>Multiple Cardinality</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.DistributionArchitectureUnitImpl#getAssociatedWithPort <em>Associated With Port</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.DistributionArchitectureUnitImpl#getAssociatedWithRole <em>Associated With Role</em>}</li>
 *   <li>{@link cz.cuni.mff.d3s.arcas.intermediate.impl.DistributionArchitectureUnitImpl#getAllowedEAs <em>Allowed EAs</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class DistributionArchitectureUnitImpl extends CDOObjectImpl implements DistributionArchitectureUnit {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DistributionArchitectureUnitImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected int eStaticFeatureCount() {
		return 0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		return (String)eGet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__NAME, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setName(String newName) {
		eSet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__NAME, newName);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isMultipleCardinality() {
		return (Boolean)eGet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__MULTIPLE_CARDINALITY, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setMultipleCardinality(boolean newMultipleCardinality) {
		eSet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__MULTIPLE_CARDINALITY, newMultipleCardinality);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getAssociatedWithPort() {
		return (String)eGet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__ASSOCIATED_WITH_PORT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAssociatedWithPort(String newAssociatedWithPort) {
		eSet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__ASSOCIATED_WITH_PORT, newAssociatedWithPort);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getAssociatedWithRole() {
		return (String)eGet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__ASSOCIATED_WITH_ROLE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAssociatedWithRole(String newAssociatedWithRole) {
		eSet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__ASSOCIATED_WITH_ROLE, newAssociatedWithRole);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<String> getAllowedEAs() {
		return (EList<String>)eGet(IntermediatePackage.Literals.DISTRIBUTION_ARCHITECTURE_UNIT__ALLOWED_EAS, true);
	}

} //DistributionArchitectureUnitImpl
